using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;

public partial class site : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
            DataBind();
    }

    protected string GetSampleUrl()
    {
        int lastIndexOfSlash=Request.RawUrl.LastIndexOf('/');
        return Request.RawUrl.Substring(0, lastIndexOfSlash) + "/Samples" + Request.RawUrl.Substring(lastIndexOfSlash);
    }
}
